﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using COM.OA.BLL;
using COM.OA.Entity;

public partial class tzManager_deltz : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //从Session中取得信息，如果为空跳回登陆页面
        users user = Session["loginuser"] as users;
        if (user == null)
        {
            this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../login.aspx"));
            return;
        }
        //从Request中取出sw_id
        int sw_id = Int32.Parse(this.Request["sw_id"]);
        //执行删除操作
        sendwordBLL.Delete(sw_id);
        //跳转
        this.Response.Write(string.Format(GetRedirect.REDIRECT, "guanlitongzhi.aspx"));
    }
}
